//
//  DNUserManager.h
//  DanoneEA
//
//  Created by Senela on 16/10/20.
//  Copyright © 2016年 翔傲科技. All rights reserved.
//

#import <Foundation/Foundation.h> 
#import "DNTimeConsumeDao.h"

 
@interface DNUserManager : NSObject

@property (nonatomic, assign) ModuleType lastVisitType; //Record the current viewcontroller module type

+ (instancetype)sharedInstance;
 
-(void)initSystemInformationOnce;

/**
 * Resets current module type for the current viewcontroller
 */
- (void)resetCurrentVCType;

-(void)printDeviceInfo;

/**
 *  Synchronize local data to the server
 */
-(void)synchronousLocalDataToServer;

/**
 *  get IPAddress
 *
 *  @return IPAddress
 */
-(NSString *)getIPAddress;
   
/**
 *  Set key and value value in NSUserDefaults
 *
 *  @param value
 *  @param key
 *
 */
-(void)setValueInDefault:(id)value withKey:(NSString *)key;



/**
 *  According to the key to get the value in NSUserDefaults
 *
 *  @param key
 *
 *  @return
 */
-(id)getValueFromDefaultWithKey:(NSString *)key;

@end
